<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>医院库房管理系统|账单统计</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet">

    <link th:href="@{/css/animate.css}" rel="stylesheet">
    <link th:href="@{/css/style.css}" rel="stylesheet">

</head>
<body>
    <!--主体-->
    <!--导航-->
    <div id="wrapper">
    <div th:replace="/manager/manager_page :: manager_nav(activeUri='ZD')"></div>
    <!--标题-->
        <div id="page-wrapper" class="gray-bg">
        <!--标题-->
            <div th:include="/manager/manager_page :: manager_title"></div>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>账单统计</h2>
                    <ol class="breadcrumb">
                        <li>
                             <a th:href="@{/manager/index}">首页</a>
                        </li>
                        <li class="active">
                            <a th:href="@{/manager/bills}"><strong>账单统计</strong></a>
                        </li>
                    </ol>
                 </div>
            </div>
        <!--表单-->

            <div class="wrapper wrapper-content animated fadeInRight ecommerce">
                <div class="ibox-content m-b-sm border-bottom">
                    <form th:action="@{/manager/warehousingInfo}" >
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="ibox">
                                    <div class="ibox-content">
                                        <!--添加-->
                                        <button type="button"  class="btn btn-success  dim" data-toggle="modal"  th:attr="data-target='#Add'">添加医生</button>
                                        <div class="modal inmodal" th:attr="id='Add'" tabindex="-1" role="dialog"  aria-hidden="true">
                                            <div class="modal-dialog">
                                                <form th:action="@{/manager/doctorInfo/adddoc}" method="post" >
                                                    <div class="modal-content animated fadeIn">
                                                        <div class="modal-header">
                                                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                                            <i class="fa"><h3>添加医生</h3></i>
                                                        </div>
                                                        <div class="modal-body">
                                                            <div class="form-group">
                                                                <div class="col-sm-3 control-label">
                                                                    <h4 style="padding-top: 5px">医生工号:</h4>
                                                                </div>
                                                                <div class="col-sm-7">
                                                                    <input class="form-control" name="docId" value="" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="modal-body">
                                                            <div class="form-group">
                                                                <div class="col-sm-3 control-label">
                                                                    <h4 style="padding-top: 5px">医生姓名:</h4>
                                                                </div>
                                                                <div class="col-sm-7">
                                                                    <input class="form-control" name="name" value="">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="modal-body">
                                                            <div class="form-group">
                                                                <div class="col-sm-3 control-label">
                                                                    <h4 style="padding-top: 5px">医生职位:</h4>
                                                                </div>
                                                                <div class="col-sm-7">
                                                                    <input class="form-control" name="Protitle" value="">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="modal-body">
                                                            <div class="form-group">
                                                                <div class="col-sm-3 control-label">
                                                                    <h4 style="padding-top: 5px">电话:</h4>
                                                                </div>
                                                                <div class="col-sm-7">
                                                                    <input class="form-control" name="phone" value="" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="modal-footer">
                                                            <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                            <input type="submit" class="btn btn-success  dim" value="添加材料"/>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
                                        <!--表单开始-->
                                        <table class="footable table table-bordered toggle-arrow-tiny" data-page-size="10">
                                            <thead>
                                            <tr>
                                                <th class="text-center" data-sortable="true">id</th>
                                                <th class="text-center" data-hide="phone">医师工号</th>
                                                <th class="text-center" data-hide="phone" >材料名</th>
                                                <th class="text-center" data-hide="phone" >申请数量</th>
                                                <th class="text-center" data-hide="phone" >领取时间</th>
                                                <th class="text-center">操作</th>

                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr th:each="account:${accountslist}">
                                                <td class="text-center"  th:text="${account.id}">
                                                    id
                                                </td>
                                                <td class="text-center"  th:text="${account.docId}">
                                                    医师工号
                                                </td>
                                                <td class="text-center" th:text="${account.useId}">
                                                    材料名
                                                </td>
                                                <td class="text-center"   th:text="${account.mount}" >
                                                    申请数量
                                                </td>
                                                <td class="text-center" th:text="${account.mount}">
                                                    价格
                                                </td>
                                                <td class="text-center" th:text="${#dates.format(account.endTime,'yyyy年MM月dd日 HH:mm:ss')}">
                                                    领取时间
                                                </td>
                                                <td class="text-center">
                                                    <div class="btn-group">
                                                        <button type="button" class="btn-white btn btn-xs"  data-toggle="modal" th:attr="data-target='#DocInfo'+${account.id}">编辑医师</button>
                                                        <!--修改库存-->
                                                        <a class="btn-white btn btn-xs" th:href="@{/manager/doctorInfo/passwd(doc_id=${account.id}) }">重置密码</a>
                                                        <a class="btn-white btn btn-xs" th:href="@{/manager/doctorInfo/status(doc_id=${account.id})}" >xxxx</a>
                                                    </div>
                                                </td>
                                            </tr>
                                            </tbody>
                                            <tfoot>
                                            <tr>
                                                <td colspan="12" class="footable-visible">
                                                    <ul class="pagination pull-right" style="margin-bottom: 0px;margin-top: 0px;">
                                                        <li class="footable-page-arrow" th:if="${IPage.getCurrent()!= 1}">
                                                            <a data-page="first" th:href="@{/manager/doctorInfo/(page=1)}" th:text="首页">
                                                            </a>
                                                        </li>
                                                        <li class="footable-page-arrow " th:if="${IPage.getCurrent()!=1}">
                                                            <a data-page="prev" th:href="@{/manager/doctorInfo/(page=${IPage.getCurrent()-1})}">
                                                                <
                                                            </a>
                                                        </li>
                                                        <li class="footable-page active">
                                                            <a data-page="0"  th:text="${IPage.getCurrent()}">
                                                            </a>
                                                        </li>
                                                        <li class="footable-page-arrow" th:if="${IPage.getCurrent()!=IPage.getPages()}">
                                                            <a data-page="next" th:href="@{/manager/doctorInfo/(page=${IPage.getCurrent()+1})}">
                                                                >
                                                            </a>
                                                        </li>
                                                        <li class="footable-page-arrow" th:if="${IPage.getCurrent()!=IPage.getPages()}" >
                                                            <a data-page="last"  th:href="@{/manager/doctorInfo/(page=${IPage.getPages()})}" th:text="末页">
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </td>
                                            </tr>
                                            </tfoot>
                                        </table>

                                    </div>
                                </div>
                            </div>
                        </div>
                </div>
            </div>
                <!--底部-->
            <div class="footer" th:include="/manager/manager_page :: manager_footer"></div>
    </div>
    <!-- Mainly scripts -->
    <script th:src="@{/js/jquery-2.1.1.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>

    <!-- Custom and plugin javascript -->
    <script th:src="@{/js/inspinia.js}"></script>
    <script th:src="@{/js/plugins/pace/pace.min.js}"></script>

</body>
</html>